.b-loading-container {
    --b-loading-size: 2px;
    --b-loading-progress: 0%;
    transform-origin: right center;
    position: fixed;
    pointer-events: none;
    top: 0px;
    left: 0px;
    z-index: 9999;
    width: 100%;
    height: var(--b-loading-size);
    transform: scale3d(1, 1, 1);
    opacity: 1;


    &.finish {
        transition: transform 0.4s, opacity 0.4s;
        transition-delay: 0s, 0.2s;
        transform: scale3d(0, 1, 1);
        opacity: 0;

        .b-loading-bar {

            &::after,
            &::before {
                display: none;
            }
        }
    }

    &.error {
        .b-loading-bar {
            --b-loading-loading: var(--b-loading-error);
            --b-loading-peg: var(--b-loading-error-peg);
            --b-loading-shadow: var(--b-loading-error-shadow);
        }
    }

    .b-loading-bar {
        overflow: hidden;
        position: relative;

        --b-loading-error: var(--el-color-danger);
        --b-loading-error-peg: var(--el-color-danger-dark-2);
        --b-loading-error-shadow: var(--el-color-danger-light-3);

        --b-loading-loading: var(--el-color-primary);
        --b-loading-peg: var(--el-color-primary-dark-2);
        --b-loading-shadow: var(--el-color-primary-light-3);

        height: 100%;
        width: 100%;
        max-width: var(--b-loading-progress);
        background-color: var(--b-loading-loading);
        box-shadow: 0 0 10px var(--b-loading-shadow), 0 0 5px var(--b-loading-shadow);

        // 做高光动画
        &::after {
            position: absolute;
            top: 0px;
            left: 0%;
            content: '';
            height: 100%;
            width: 80px;
            background-image: linear-gradient(45deg, var(--b-loading-loading) 30%, rgba(var(--el-bg-color-rgb), 0.6) 54.5%, rgba(var(--el-bg-color-rgb), 0.6) 55%, transparent 70%);
            transform: translate3d(-30%, 0, 0);
            animation: move 4s infinite;
        }

        // 进度头阴影
        &::before {
            position: absolute;
            top: 0px;
            right: 0px;
            content: '';
            width: 80px;
            height: 100%;
            background-image: linear-gradient(45deg, var(--b-loading-loading), var(--b-loading-peg));
        }

        @keyframes move {
            0% {
                left: 0%;
            }

            100% {
                left: 100%;
            }
        }

    }


}